package org.jeecg.modules.product.risk.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.jeecg.common.aspect.annotation.Dict;
import org.jeecgframework.poi.excel.annotation.Excel;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 检查项评分细则表
 * @Author: jeecg-boot
 * @Date:   2024-05-08
 * @Version: V1.0
 */
@Data
@TableName("tb_base_check_score")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@Schema(description="检查项评分细则表")
public class TbBaseCheckScore implements Serializable {
    private static final long serialVersionUID = 1L;

	/**主键*/
	@TableId(type = IdType.ASSIGN_ID)
    @Schema(description = "主键")
    private String id;
	/**创建人*/
    @Schema(description = "创建人")
    private String createBy;
	/**创建日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "创建日期")
    private Date createTime;
	/**更新人*/
    @Schema(description = "更新人")
    private String updateBy;
	/**更新日期*/
	@JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern="yyyy-MM-dd")
    @Schema(description = "更新日期")
    private Date updateTime;
	/**所属部门*/
    @Schema(description = "所属部门")
    private String sysOrgCode;
	/**所属检查项*/
	@Excel(name = "所属检查项", width = 15, dictTable = "tb_base_check_item", dicText = "check_content", dicCode = "id")
	@Dict(dictTable = "tb_base_check_item", dicText = "check_content", dicCode = "id")
    @Schema(description = "所属检查项")
    private String checkItemId;
	/**是否为否决项*/
	@Excel(name = "是否为否决项", width = 15, dicCode = "yn")
	@Dict(dicCode = "yn")
    @Schema(description = "是否为否决项")
    private String isReject;
	/**扣分分值*/
	@Excel(name = "扣分分值", width = 15)
    @Schema(description = "扣分分值")
    private Double deductPoint;
	/**扣分说明*/
	@Excel(name = "扣分说明", width = 15)
    @Schema(description = "扣分说明")
    private String deductIllustrate;
	/**删除标识*/
	@Excel(name = "删除标识", width = 15, dicCode = "yn")
	@Dict(dicCode = "yn")
    @Schema(description = "删除标识")
    private String deleted;

    /**租户ID*/
    private Integer tenantId;
}
